-- GENERATED SPELL FOR [Hillsbrad Apprentice Blacksmith] --


function spell0_2265(pUnit, Event) --@Head Crack,n/a--
pUnit:FullCastSpellOnTarget(3148,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2265', 20342, 1)
end

function Sorts_2265(pUnit, Event)
local choix_sorts_2265 = math.random(0, 0)
if choix_sorts_2265 == 0 then
pUnit:RegisterEvent('spell0_2265', 1, 1)
end
end

function mob2265_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2265', math.random(1500, 3000), 1)
end

function mob2265_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2265_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2265_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2265, 1, 'mob2265_Action')
RegisterUnitEvent(2265, 2, 'mob2265_Leave')
RegisterUnitEvent(2265, 3, 'mob2265_Kill')
RegisterUnitEvent(2265, 4, 'mob2265_Die')
